@echo off
setlocal enabledelayedexpansion

title BUILD--vue

set batPath=%~dp0

cd /d batPath

DEL /S /Q dist.zip

call npm install -g yarn

call yarn install

call npm run build-pro

call "C:\Program Files\WinRAR\WinRAR.exe" a -ep1 "dist.zip" "dist"

RD /S /Q dist

git add dist.zip
git commit -m "dist.zip"
git push